package cn.kjcoder.springcloud.service.impl;

import cn.kjcoder.springcloud.dao.PaymentDao;
import cn.kjcoder.springcloud.domain.Payment;
import cn.kjcoder.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * @author hkj
 * @email 1349091387@qq.com
 * @date 2021/12/20
 * 源码允许修改，并且本人十分乐意有 大佬 来对代码进行 随 意 调 教
 **/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int save(Payment payment) {
        int rs = paymentDao.save(payment);
        return rs;
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
